package com.zy.edu.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.zy.edu.bean.Course;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.edu.bean.InputParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-17
 */
public interface CourseDao extends BaseMapper<Course> {

    List<Course> findByTeachId(Pagination pagination,
                               @Param("inputParam")InputParam inputParam);

    Course findAllByStuId(InputParam inputParam);

    Course findAllByClsId(InputParam inputParam);

    List<Course> getByClsId(String clsId);
}
